package com.octnote.repository;

import com.octnote.domain.contacts.Contacts;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RestResource;

/**
 * Created by leohehe on 2017/6/21.
 */
@RestResource(exported = false)
public interface ContactsRepository extends JpaRepository<Contacts, Long> {
    Page<Contacts> findByUserIdContaining(String searchPhrase, Pageable p);
}
